Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Omron Device Pairing #16

Merged
merged 24 commits into from
Jul 2, 2024
Merged

Introduce Omron Device Pairing #16

merged 24 commits into from
Jul 2, 2024

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Jun 10, 2024

Introduce Omron Device Pairing

♻️ Current situation & Problem

This PR changes how we handle device interaction with Omron devices. Instead of continuously browsing for weigh scale and blood pressure devices in the environment, the user pairs with a specific Omron devices via the new Devices Tab. The devices tab shows all currently paired devices, their connection status (currently connected vs. last seen) and additional information like battery. Further, it provides customizability to name your devices.

⚙️ Release Notes

  • Integrate Omron device pairing.
  • Rework measurement retrieval to support visualizing multiple measurements
  • Use SpeziDevices to host measurement conversion and device pairing functionality.

📚 Documentation

--

✅ Testing

Functionality is tested as part of the SpeziDevices package. Functionality was manually verified using real Omron devices.

Code of Conduct & Contributing Guidelines

By submitting creating this pull request, you agree to follow our Code of Conduct and Contributing Guidelines:

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

Attention: Patch coverage is 92.15686% with 8 lines in your changes missing coverage. Please review.

Project coverage is 79.06%. Comparing base (fc3175f) to head (5766a1f).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #16      +/-   ##
==========================================
+ Coverage   78.27%   79.06%   +0.79%     
==========================================
  Files          56       39      -17     
  Lines        2144     1671     -473     
==========================================
- Hits         1678     1321     -357     
+ Misses        466      350     -116     
Files Coverage Δ
ENGAGEHF/ENGAGEHF.swift 100.00% <100.00%> (ø)
ENGAGEHF/ENGAGEHFDelegate.swift 96.43% <100.00%> (+0.28%) ⬆️
ENGAGEHF/Education/Education.swift 26.48% <ø> (ø)
ENGAGEHF/Home.swift 93.48% <100.00%> (-6.52%) ⬇️
...HF/ReusableElements/StudyApplicationListCard.swift 66.67% <100.00%> (ø)
.../Dashboard/Notifications/NotificationManager.swift 80.72% <83.34%> (ø)
ENGAGEHF/Dashboard/Dashboard.swift 94.74% <88.89%> (-5.26%) ⬇️
...F/Dashboard/Vitals/Views/RecentVitalsSection.swift 95.79% <92.31%> (-1.98%) ⬇️
ENGAGEHF/ENGAGEHFStandard.swift 64.20% <86.96%> (+6.38%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fc3175f...5766a1f. Read the comment docs.

@Supereg Supereg force-pushed the feature/control-point branch 2 times, most recently from 63411fc to d57297c Compare June 18, 2024 11:55
@Supereg Supereg force-pushed the feature/control-point branch from d57297c to 20e37da Compare June 18, 2024 12:02
@Supereg Supereg changed the title Support device pairing Introduce Omron Device Pairing Jun 27, 2024
@PSchmiedmayer PSchmiedmayer self-requested a review June 27, 2024 19:49
@PSchmiedmayer PSchmiedmayer added the enhancement New feature or request label Jun 27, 2024
@PSchmiedmayer PSchmiedmayer marked this pull request as ready for review June 27, 2024 19:50
Copy link
Member

@PSchmiedmayer PSchmiedmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the work on the ENGAGE-HF app @Supereg! Great additions with Spezi Devices and all the work here! Very smooth integration.

I mainly had two API design comments that are nice to spot here in the integration, everything else looks great, only smaller comments.

ENGAGEHF.xcodeproj/project.pbxproj Outdated Show resolved Hide resolved
ENGAGEHF/Dashboard/Dashboard.swift Show resolved Hide resolved
ENGAGEHF/Helper/CodableArray+RawRepresentable.swift Outdated Show resolved Hide resolved
ENGAGEHF/Supporting Files/ENGAGEHF.entitlements Outdated Show resolved Hide resolved
ENGAGEHF/Home.swift Outdated Show resolved Hide resolved
ENGAGEHF/Home.swift Show resolved Hide resolved
@Supereg Supereg merged commit 78ef6fa into main Jul 2, 2024
8 checks passed
@Supereg Supereg deleted the feature/control-point branch July 2, 2024 18:13
@Supereg Supereg mentioned this pull request Jul 2, 2024
1 task
Supereg added a commit that referenced this pull request Jul 2, 2024
# Fix beta deployment

## ♻️ Current situation & Problem
There was one change accidentally checked in with #16. This PR reverts
that to fix beta deployments.


## ⚙️ Release Notes 
* Fix beta deployments.



## ✅ Testing
Verified in Xcode UI.

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
@PSchmiedmayer
Copy link
Member

Amazing job with this PR @Supereg; great to see all the results in the ENGAGE-HF app!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants